<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/style.css" />
<script type="text/javascript" src="js/boxOver.js"></script>
<c:set var="role" value="${sessionScope.role}"/>

<div id="main_container">
    <div id="menu_tab">
        <div class="left_menu_corner"></div>
        <ul class="menu">
            <%--befor login--%>
            <c:if test="${empty role}">
                <li><a href="index.jsp" class="navHome">Home</a></li>
                <li class="divider"></li>
                <li><a href="register.jsp" class="navSignUp">Sign Up</a></li>
                <li class="divider"></li>
                <li><a href="searchProduct.jsp" class="navSearch">Search Product</a></li>
                <li class="divider"></li>
                <li><a href="contact_us.jsp" class="navContact">Contact Us</a></li>
            </c:if>
            <%--after login - role customer--%>

            <c:if test="${role eq 'Customer' or role eq 'Potential Customer'}">
                <li><a href="index.jsp" class="navHome">Home</a></li>
                <li class="divider"></li>
                <li><a href="change_password.jsp" class="navChangePassword">Change Password</a></li>
                <li class="divider"></li>
                <li><a href="profile.jsp" class="navProfile">Profile</a></li>
                <li class="divider"></li>
                <li><a href="searchProduct.jsp" class="navSearch">Search Product</a></li>
                <li class="divider"></li>
                <li><a href="order.jsp" class="navOrder">Order List</a></li>
            </c:if>

             <c:if test="${role eq 'Dealer'}">
                <li><a href="index.jsp" class="navHome">Home</a></li>
                <li class="divider"></li>
                <li><a href="change_password.jsp" class="navChangePassword">Change Password</a></li>
                <li class="divider"></li>
                <li><a href="profile.jsp" class="navProfile">Profile</a></li>
                <li class="divider"></li>
                <li><a href="searchProduct.jsp" class="navSearch">Search Product</a></li>
                <li class="divider"></li>
                <li><a href="order.jsp" class="navOrder">Order List</a></li>
            </c:if>

            <c:if test="${role eq 'Trearer'}">
                <li><a href="index.jsp" class="navHome">Home</a></li>
                <li class="divider"></li>
                <li><a href="change_password.jsp" class="navChangePassword">Change Password</a></li>
                <li class="divider"></li>
                <li><a href="profile.jsp" class="navProfile">Profile</a></li>
                <li class="divider"></li>
                <li><a href="searchProduct.jsp" class="navSearch">Search Product</a></li>
                <li class="divider"></li>
                <li><a href="ieBill.jsp" class="navImportExport">Import-Export Product</a></li>
            </c:if>

            <c:if test="${role eq 'Admin'}">
                <li><a href="index.jsp" class="navHome">Home</a></li>
                <li class="divider"></li>
                <li><a href="change_password.jsp" class="navChangePassword">Change Password</a></li>
                <li class="divider"></li>
                <li><a href="profile.jsp" class="navProfile">Profile</a></li>
                <li class="divider"></li>
                <li><a href="product.jsp" class="navManageProduct">Manage Product</a></li>
                <li class="divider"></li>
                <li><a href="" class="navManageUser">Manage User</a></li>
            </c:if>
        </ul>
        <div class="right_menu_corner"></div>
    </div>
</div>
